home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT GETTIME.SCRIPT < prev    next >
Encoding:
Text File  |  1998-01-06  |  534 b   |  25 lines

  1. !!Script
  2. // Copyright ⌐ 1997-1998 - Modelworks Software
  3.  
  4. // Insert script helper for:
  5.  
  6. /**
  7. @Object: Date 
  8. @Method: getTime() - returns the numeric value corresponding to the time. 
  9. @Syntax: date.getTime()
  10. @Summary: getTime - returns the numeric value corresponding to the time
  11. */
  12.  
  13. function DoCommand()
  14. {
  15.   var editor = getActiveEditor();
  16.   if (editor)
  17.   {
  18.     var selection = editor.getSelection();
  19.     editor.replace("date.getTime()", selection);
  20.     editor.setActive("Insert date.getTime");
  21.   }
  22. }
  23.  
  24. !!/Script
  25.